#!/bin/bash
set_normal() {
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo &> /dev/null 
if [ $? -eq 0 ];then
   echo -e "\e[32m阿里云源仓库安装成功\e[0m"
else 
   echo -e "\e[31m阿里云源仓库安装失败\e[0m"
fi
sleep 0.5
packages=(epel-release wget vim lrzsz createrepo)
for i in ${packages[@]};do
echo -e  "\e[33m正在安装${i}\e[0m"
yum -y install $i &> /dev/null && echo -e "\e[32m${i}安装完成\e[0m"
sleep 1 
done
}
